package com.totem.base.mybatis.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@Getter
@Setter
public abstract class AbstractEntity extends Model implements Serializable {

    @TableField(value="create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value="create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value="update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value="update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
}
